{* Smarty *}
{extends file="include/base_with_menu.tpl"}

{block name="javascript"}
<script type="text/javascript">
var token_name = '{$token_name}',
	token_hash = '{$token_hash}',
	member_id = {$member.id};
{literal}
function member_set(member_status) 
{
	var label = member_status == 0 ? '全职' : member_status == 1 ? '兼职' : '休眠';
	if(confirm('是否设置为'+label+'成员？'))
	{
		var post_vars = {
			'member_id': member_id,
			'member_status': member_status
		};
		post_vars[token_name] = token_hash;
		$.post('/market/se/member/set', post_vars, function(r){
			r.ret_code == 0 ? location.reload() : alert(r.message);
		}, 'json');
	}
}
{/literal}
</script>
{/block}

{block name="content"}
<h3 class="blockTitle">{$member.name|escape}</h3>
<div class="layout">
    {if $member.status != 0}<a href="javascript:member_set(0)">设置为全职成员</a> |{/if}
    {if $member.status != 1}<a href="javascript:member_set(1)">设置为兼职成员</a> |{/if}
    {if $member.status != 2}<a href="javascript:member_set(2)">设置为休眠成员</a>{/if}
</div>
<div class="layout">
    <table width="100%" class="tbData01" cellspacing="0" cellpadding="0">
        <tr>
            <td colspan="13">{$member.name|escape}</td>
        </tr>
        <tr>
            <td>执行项目总数：</td>
            <td colspan="2">0</td>
            <td colspan="5">执行项目总时长：</td>
            <td colspan="5">0</td>
        </tr>
        <tr>
            <td rowspan="2">参与项目</td>
            <td rowspan="2">项目学校</td>
            <td rowspan="2">是否进入</td>
            <td colspan="2">覆盖班数</td>
            <td colspan="2">学校班数</td>
            <td rowspan="2">进入率</td>
            <td colspan="2">贡献率</td>
            <td rowspan="2">满点提成</td>
            <td rowspan="2">工作天数</td>
            <td rowspan="2">实际提成</td>
        </tr>
        <tr>
            <td>逐校</td>
            <td>总体</td>
            <td>逐校</td>
            <td>总体</td>
            <td>逐校</td>
            <td>总体</td>
        </tr>
    </table>
</div>
{/block}
